home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
Pakiet multimedia
/
Linux LiveCD
/
GeeXboX 1.0 EN
/
geexbox-1.0-en.i386.iso
/
GEEXBOX
/
etc
/
init.d
/
77_mp-dxr3
< prev
next >
Wrap
Text File
|
2006-06-21
|
948b
|
40 lines
#!/bin/sh
#
# configure DXR3/Hollywood+ cards for MPlayer
#
# runlevels: geexbox, debug
# include audio configuration file
. /etc/audio
# include tvout configuration file
. /etc/tvout
# set ao, vo and vf for DXR3/Hollywood+ cards and upload microcode.
if [ -e /var/use_dxr3 ]; then
echo "### Configuring DXR3/Hollywood+ cards for MPlayer ###"
mp_set_option vo "dxr3:sync:norm=0"
mp_set_option ao "oss:/dev/em8300_ma-0"
mp_set_option vf "expand=-1:-1:-1:-1:1" concat
sed -i "s%play_dvd.*%quit 167\"/>%" /etc/mplayer/menu.conf
em8300setup -p -a -o >/dev/null 2>&1
# TVOut standard (default is PAL)
if [ "$TVOUT_STANDARD" = "ntsc" ]; then
em8300setup -n >/dev/null 2>&1
fi
# set display to WideScreen format (default is 4:3)
if [ "$TVOUT_ASPECT" = "16:9" ]; then
em8300setup -w >/dev/null 2>&1
fi
# use SPDIF output ?
if [ "$SOUNDCARD_MODE" = SPDIF ]; then
em8300setup -d >/dev/null 2>&1
fi
fi
exit 0